package com.homedo.odin.solution.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.homedo.odin.solution.model.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

@ApiModel(description = "我的收藏,我的下载返回信息")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class DlAndCollectSolutionRespBean extends BaseBean {

    /**
     * 方案id
     */
    @ApiModelProperty("方案id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long solutionId;

    /**
     * 方案名称
     */
    @ApiModelProperty("方案名称")
    private String solutionName;

    /**
     * 方案类型
     */
    @ApiModelProperty("方案类型")
    private Integer solutionType;

    /**
     * 下载/收藏日期
     */
    @ApiModelProperty("下载/收藏日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date lastModifiedTime;

    /**
     * 方案状态
     */
    @ApiModelProperty("方案状态")
    private Integer solutionStatus;

    /**
     * 系统属性
     */
    @ApiModelProperty("一级系统属性")
    private String firstSysAttr;

    /**
     * 来源
     */
    @ApiModelProperty("来源,是专家就给专家id,不是专家不给")
    private Integer expertId;

    /**
     * 专家姓名
     */
    @ApiModelProperty("专家姓名")
    private String expertName;

}
